﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CreatPPARWeb.aspx.cs" Inherits="PPAP.Web.Part.CreatPPARWeb" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="../Skin/tab.css" type="text/css" rel="stylesheet" />
    <script type="text/javascript">
        var tablink_idname = new Array("tablink", "anotherlink")
        var tabcontent_idname = new Array("tabcontent", "anothercontent")
        var tabcount = new Array("6", "6")
        var loadtabs = new Array("2", "5")
        var autochangemenu = 2;
        var changespeed = 3;
        var stoponhover = 0;



        function easytabs(menunr, active) {
            if (menunr == autochangemenu) { currenttab = active; }
            if ((menunr == autochangemenu) && (stoponhover == 1)) { stop_autochange() }
            else if ((menunr == autochangemenu) && (stoponhover == 0)) { counter = 0; } menunr = menunr - 1;
            for (i = 1; i <= tabcount[menunr]; i++) { document.getElementById(tablink_idname[menunr] + i).className = 'tab' + i; document.getElementById(tabcontent_idname[menunr] + 1).style.display = 'none'; } document.getElementById(tablink_idname[menunr] + active).className = 'tab' + active + ' tabactive'; document.getElementById(tabcontent_idname[menunr] + 1).style.display = 'block';

            if (active == 1) {
                document.getElementById("iframeleft").src = "PPARTab.aspx?rid=<%= RID%>&his=<%=his %>";
            }
            else if (active == 2) {
                document.getElementById("iframeleft").src = "PPARAttachmentTab.aspx?rid=<%= RID%>&his=<%=his %>";
            }
            else if (active == 3) {
                document.getElementById("iframeleft").src = "SamplingCapbility.aspx?rid=<%= RID%>&his=<%=his %>";
            }
            else if (active == 4) {
                document.getElementById("iframeleft").src = "SampleCard.aspx?rid=<%= RID%>&his=<%=his %>";
            }
            else if (active == 5) {
                document.getElementById("iframeleft").src = "FinalDecisions.aspx?rid=<%= RID%>&fd=<%=fd %>&his=<%=his %>";
            }
            else if (active == 6) {
                document.getElementById("iframeleft").src = "SamplingReport.aspx?rid=<%= RID%>&his=<%=his %>";
            }
        }

    </script>
</head>
<body runat="server" id="body">
    <form id="form1" runat="server">
    <table style="border-color: #2A48CE; border: 0px; border-style: solid; border-color: Gray;
        border-spacing: 0px;">
        <tr>
            <td>
                <table width="900" style=" background-color:#EEE; border-color: #2A48CE; border: 0px; border-style: solid; border-spacing: 0px;">
                    <tr>
                        <td colspan="4" style="border-bottom-width: 1px; border-top-width: 0; border-left-width: 0;
                            border-right-width: 0; border-style: solid; border-color: #2E8AC5;" align="right">
                            <asp:Button ID="Button2" CssClass="button" runat="server" OnClientClick="alert('Are developing');return false;"
                                Text="Submit" Visible="False" />
                            <asp:Button ID="Button3" CssClass="button" runat="server" Visible="false" Text="Export" />
                            <asp:Button ID="Button4" CssClass="button" runat="server" Visible="false" Text="Print" />
                            <asp:Button ID="btnBack" CssClass="button" runat="server" Text="Back" OnClick="btnBack_Click" />
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 20%; font-weight: bold; color: #2E8AC5;">
                            PPAR No.
                        </td>
                        <td style="width: 30%;">
                            <asp:Label ID="LblPPARNo" runat="server" Text="Label"></asp:Label>
                        </td>
                        <td style="width: 20%; font-weight: bold; color: #2E8AC5;">
                            Status
                        </td>
                        <td style="width: 30%;">
                            <asp:Label ID="lblStatus" runat="server" Text="Label"></asp:Label>
                        </td>
                    </tr>
                    <tr style="border: 1px; border-style: solid; border-color: Gray;">
                        <td style="font-weight: bold; color: #2E8AC5;">
                            BDNT Part No.
                        </td>
                        <td>
                            <asp:Label ID="lblPartNo" runat="server" Text="Label"></asp:Label>
                        </td>
                        <td style="font-weight: bold; color: #2E8AC5;">
                            BDNT Part name
                        </td>
                        <td>
                            <asp:Label ID="lblPartName" runat="server" Text="Label"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td style="font-weight: bold; color: #2E8AC5;">
                            BDNT Revision No.
                        </td>
                        <td>
                            <asp:Label ID="lblRevisionNo" runat="server" Text="Label"></asp:Label>
                        </td>
                        <td style="font-weight: bold; color: #2E8AC5;">
                            BDNT Revision status
                        </td>
                        <td>
                            <asp:Label ID="lblRevisionStatus" runat="server" Text="Label"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td style="font-weight: bold; color: #2E8AC5;">
                            Color
                        </td>
                        <td>
                            <asp:Label ID="lblColor" runat="server" Text="Label"></asp:Label>
                        </td>
                        <td style="font-weight: bold; color: #2E8AC5;">
                            PPAR create date
                        </td>
                        <td>
                            <asp:Label ID="lblPPARdate" runat="server" Text="Label"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td style="font-weight: bold; color: #2E8AC5;">
                            Supplier name
                        </td>
                        <td>
                            <asp:Label ID="lblSupplierName" runat="server" Text="Label"></asp:Label>
                        </td>
                        <td style="font-weight: bold; color: #2E8AC5;">
                            Supplier code
                        </td>
                        <td>
                            <asp:Label ID="lblSupplierCode" runat="server" Text="Label"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td style="font-weight: bold; color: #2E8AC5; color: #2E8AC5;">
                            Contact person
                        </td>
                        <td>
                            <asp:Label ID="lbContactPerson" runat="server" Text="Label"></asp:Label>
                        </td>
                        <td style="font-weight: bold; color: #2E8AC5; color: #2E8AC5;">
                            Contact person information
                        </td>
                        <td>
                            <asp:Label ID="lblPersonInformation" runat="server" Text="Label"></asp:Label>
                        </td>
                    </tr>
                </table>
                <br />
                <div class="menu">
                    <ul>
                        <li><a href="#" onfocus="easytabs('1', '1');" onclick="easytabs('1', '1');" title=""
                            id="tablink1">PPAR</a></li>
                        <li><a href="#" onfocus="easytabs('1', '2');" onclick="easytabs('1', '2');" title=""
                            id="tablink2">PPAR attachment</a></li>
                        <li><a href="#" onfocus="easytabs('1', '3');" onclick="easytabs('1', '3');" title=""
                            id="tablink3">Sampling capability</a></li>
                        <li><a href="#" onfocus="easytabs('1', '4');" onclick="easytabs('1', '4');" title=""
                            id="tablink4">Sample card</a></li>
                        <li><a href="#" onfocus="easytabs('1', '5');" onclick="easytabs('1', '5');" title=""
                            id="tablink5">Final decisions</a></li>
                        <li><a href="#" onfocus="easytabs('1', '6');" onclick="easytabs('1', '6');" title=""
                            id="tablink6">Sampling report</a></li>
                    </ul>
                </div>
                <div id="tabcontent1">
                    <iframe name="frameleft" id="iframeleft" src="PPARTab.aspx?rid=<%= RID%>" frameborder="0"
                        width="100%" height="760px"></iframe>
                </div>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
